<!--#
 @version 0.3 (auto-set)
#-->
<!-- Table 'objects' edit -->
<table border=0 align=center cellpadding=3>
<form action="?" method="post" enctype="multipart/form-data" name="frmEdit">
[#if OK#]
<tr>
 <td colspan=2 align=center>
  <font color="green"><#LANG_DATA_SAVED#></font>
 </td>
</tr>
[#endif OK#]
[#if ERR#]
<tr>
 <td colspan=2 align=center>
  <font color="red"><#LANG_FILLOUT_REQURED#></font>
 </td>
</tr>
[#endif ERR#]
[#if ID=""#]
<tr>
 <td colspan=2 align=center><b><#LANG_NEW_OBJECT#></b></td>
</tr>
[#endif ID#]
<!-- TITLE (varchar) -->
<tr>
 <td align=right>
 [#if ERR_TITLE#]<b><font color="red">[#endif#]
 <#LANG_TITLE#>:
 (*)
 </td>
 <td>
  <input type="text" name="title" value="[#TITLE#]">
 </td>
</tr>
<!-- CLASS_ID (select) -->
<tr>
 <td align=right valign=top>
 [#if ERR_CLASS_ID#]<b><font color="red">[#endif#]
 <#LANG_CLASS#>: 
 (*)</td>
 <td>                                           
 <select name="class_id">
  <option value="">select
  [#begin CLASS_ID_OPTIONS#]<option value="[#ID#]"[#if ID="<#CLASS_ID#>"#] selected[#endif#]>[#TITLE#]
  [#end CLASS_ID_OPTIONS#]
 </select>
 </td>
</tr>
<!-- DESCRIPTION (text) -->
<tr>
 <td valign=top align=right>
 [#if ERR_DESCRIPTION#]<b><font color="red">[#endif#]
 <#LANG_DESCRIPTION#>
 :
 </td>
 <td valign=top>
 <textarea name="description" rows=4 cols=100 class="field span8">[#DESCRIPTION#]</textarea>
 </td>
</tr>
<!-- LOCATION_ID (select) -->
<tr>
 <td align=right valign=top>
 [#if ERR_LOCATION_ID#]<b><font color="red">[#endif#]
 <#LANG_LOCATION#>: 
 </td>
 <td>                                           
 <select name="location_id">
  <option value="">-
  [#begin LOCATION_ID_OPTIONS#]<option value="[#ID#]"[#if SELECTED#] selected[#endif#]>[#TITLE#]
  [#end LOCATION_ID_OPTIONS#]
 </select>
 </td>
</tr>
<tr>
 <td colspan=2 align=center>
 [#if ID!=""#]
 <input type="submit" name="subm" value="<#LANG_UPDATE#>">
 [#else ID#]
 <input type="submit" name="subm" value="<#LANG_ADD#>">
 [#endif ID#]
 &nbsp;
 <a href="?"><#LANG_CANCEL#></a>
 </td>
</tr>
<input type="hidden" name="id" value="<#ID#>">
<input type="hidden" name="view_mode" value="<#VIEW_MODE#>">
<input type="hidden" name="edit_mode" value="<#EDIT_MODE#>">
<input type="hidden" name="mode" value="update">
<input type="hidden" name="tab" value="<#TAB#>">
</form>
</table>
